package myfirstproject.firstproject.domain.VO;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Schema(description = "文章VO实体")
public class ArticleVO {
    @Schema(description = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "发布用户id")
    private String publisher;

    @Schema(description = "点赞")
    private Integer giveUp;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "文章")
    private String article;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "发布文章用户实体")
    private ArticleUserVO articleUserVO;
}
